       <div class="RightColumn">
            <div class="P10">
                <h2 class="Title01 P10 BorderBot01">Downloads Manager</h2>
                <div class="P10">
                    <p class="FS12 P10Bot">
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra.
                    </p>

                    <div class="Container BorderBot02">
					    <div class="Picture1">
						    <ul class="CounterList">
                            <?php echo $all_link; ?>
                                &nbsp;
                            </ul>
					    </div>
					    <div class="Description">
                            <p class="W138 FlRight">
                                <a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editdownload/" class="Button01" title="upload new">upload new</a>
                            </p>
					    </div>
				    </div>

                    <table cellpadding="0" cellspacing="0" border="0" class="Table01">
                        <colgroup>
                            <col width="8%" />
                            <col width="15%" />
                            <col width="38%" />
                            <col width="12%" />
                            <col width="12%" />
                            <col width="12%" />
                        </colgroup>
                        <tr>
                            <td>issue</td>
                            <td>name</td>
                            <td>category</td>
                            <td>download item</td>
                            <td>reupload item</td>
                            <td>delete item</td>
                        </tr>
                 <?php 
				 $i=0;
				foreach($banners as $item)
				{
					if($i%2!=0)
					{
				?>
                        <tr>
                            <td><p class="Background02"><?php echo $item['itemid']; ?></p></td>
                            <td><p><?php echo $item['name']; ?></p></td>
                            <td><p>
                    <?php
						foreach($category as $item2)
						{

								if($item2['category_id']==$item['category_id'])
								{
									echo $item2['cname'];
								}
						}
					?>
                            </p></td>
                            <td><a href="<?php echo base_url(); ?>upload_file/download/<?php echo $item['downloadfile']; ?>" class="Background02" title="download item">download item</a></td>
                            <td><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editdownload/<?php echo $item['id']; ?>" class="Background02" title="reupload item">reupload item</a></td>
                            <td><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/deletedownload/<?php echo $item['id']; ?>" class="Background03" title="delete item">delete item</a></td>
                        </tr>
                 <?php 
					}
					else
					{
				?>
                        <tr>
                            <td class="Background01"><p class="Background02"><?php echo $item['itemid']; ?></p></td>
                            <td class="Background01"><p><?php echo $item['name']; ?></p></td>
                            <td class="Background01"><p>
                    <?php
						foreach($category as $item2)
						{

								if($item2['category_id']==$item['category_id'])
								{
									echo $item2['cname'];
								}
						}
					?>
                            </p></td>
                            <td class="Background01"><a href="<?php echo base_url(); ?>upload_file/download/<?php echo $item['downloadfile']; ?>" class="Background02" title="download item">download item</a></td>
                            <td class="Background01"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editdownload/<?php echo $item['id']; ?>" class="Background02" title="reupload item">reupload item</a></td>
                            <td class="Background01"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/deletedownload/<?php echo $item['id']; ?>" class="Background03" title="delete item">delete item</a></td>
                        </tr>
				<?php 
					}
				$i++;
				}
				?>
                    </table>


                </div>
            </div>
       </div>

       
<script>
jQuery(document).ready(function(){
	jQuery("#DownloadsManager").addClass('current');
});
</script>